<?PHP 
//conectar a la BD

//conexion en casa
define( "DATABASE_SERVER", "localhost" );
define( "DATABASE_USERNAME", "root" );
define( "DATABASE_PASSWORD", "root" ); 
define( "DATABASE_NAME", "masmedio" );


//Config serv Server: editormm.db.5525057.hostedresource.com   Database: editormm   Table: admin 
/* esto es para godaddy*
define( "DATABASE_SERVER", "editormm.db.5525057.hostedresource.com" );
define( "DATABASE_USERNAME", "editormm" );
//define( "DATABASE_PASSWORD", "eHu1n4uT4" ); 
define( "DATABASE_PASSWORD", "rEYBsOyZ3p" );
define( "DATABASE_NAME", "editormm" );
*/
//connect to the database
$mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD);

if (!$mysql) {
    die('Not connected : ' . mysql_error());
}

mysql_select_db( DATABASE_NAME, $mysql );


?>